:root {
  --red-dark-color: #c9191e;
  --red-light-color: #fef4f4;
  --green-dark-color: #273c2d;
  --green-light-color: #cdddd6;
  --cream: #e7e7e7;
  --blue-dark-color: #4a4a70;
  --blue-light-color: #cdcddf;
  --orange-dark-color: #a73d00;
  --orange-light-color: #f0ded1;
  --black-dark-color: #000;
  --black-light-color: #c8c8c8;
  --pink-dark-color: #751978;
  --pink-light-color: #c29fc3;
  --yellow-dark-color: #a96000;
  --yellow-light-color: #e4cf89;
}

body {
  color: rgb(44, 44, 44);
  background-color: whitesmoke;
  text-align: center;
}
a {
  color: rgb(44, 44, 44);
}
body,
header,
main,
footer,
ul,
li,
div,
span,
img,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
figcaption {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul,
li {
  list-style-type: none;
}

.sr-only,
.skiplinks a:not(:focus) {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important; /* 1 */
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important; /* 2 */
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

header,
main,
footer {
  margin: 0 1rem;
}

header {
  padding: 1rem 0;
  nav ul {
    display: flex;
    li {
      outline: 1px solid black;
      margin-right: 1rem;
      a {
        border: 1ps solid black;
        color: rgb(44, 44, 44);
        background-color: #fff;
        span {
          display: inline-block;
          padding: 0.5rem 1rem;
        }
      }
      &[aria-current] span {
        outline: 3px solid black;
      }
    }
  }
}

body {
  background-color: var(--cream);
  font-family: Arial, Verdana, sans-serif;
}

.global-content {
  background-color: white;
  margin: 0 auto;
  text-align: left;
  width: 100%;
  border-left: 1px solid black;
  border-right: 1px solid black;
}

h1 {
  display: inline;
  font-size: 1.5em;
  span {
    display: inline-block;
    width: 100%;
    &.subTitle {
      font-size: smaller;
    }
  }
}
h1, h3, h4, h5, h6{
  font-weight: normal;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.8em;
  padding: 1rem 0;

  .social {
    display: inline-block;
    align-content: center;
    border: 1px solid #0a66c2;
    border-radius: 50%;
    background: #0a66c2;
    width: 2rem;
    height: 2rem;
    line-height: 1rem;
    text-align: center;
    display: inline-block;
    svg {
      fill: white;
    }
  }
  p {
    margin: 0;
    padding: 0;
  }
  [role="heading"] {
    font-weight: bold;
  }
  > div {
    margin-bottom: 2rem;
  }
}

[aria-expanded] {
  &:before {
    content: "<";
    display: inline-block;
    font-size: 2em;
  }
}
[aria-expanded="true"] {
  &:before {
    transform: rotate(90deg);
  }
}
[aria-expanded="false"] {
  &:before {
    transform: rotate(270deg);
  }
}

*:has([aria-expanded="true"]) + [id] {
  display: inline-block;
}
*:has([aria-expanded="false"]) + [id] {
  display: none;
}

@media (min-width: 20rem) {
}

@media (min-width: 36rem) {
  h1 {
    font-size: 2em;
  }
}

@media (min-width: 48rem) {
  footer {
    flex-direction: row;
    > div {
      margin-right: 2rem;
    }
  }
}

@media (min-width: 62rem) {
  .global-content {
    width: 60rem;
  }
}
